"""
__project__ = 'thc'
__file_name__ = '第一次作业'
__author__ = 'thc'
__time__ = '2020/12/19 9:14'
__product_name = PyCharm
-*- coding:utf-8 -*-
"""

import time
'''
def ZuoYe(mc, zy,  *args, zs='3', fs='500', **kwargs):
    print('大学名称:'+mc)
    print('专业:'+zy)
    print('招生分数线:'+fs)
    print('招生人数:' + zs)
    print('招生老师名单:'+str(args))
    print('报考考生及其高考成绩')
    print(kwargs)
    a = len(kwargs.keys())
    print('报考人数:'+str(a))
    b = 0
    my_list = []
    for i in kwargs.keys():
        if kwargs[i] >= 500:
            b += 1
            my_list.append(i)
    print('达线人数:'+str(b))
    print('录取名单')
    print(my_list)
    if int(zs) > b:
        print('录取人数:'+str(b))
    else:
        print('录取人数:'+zs)


ZuoYe('北大', '土木', '王老师', '赵老师', 张三=400, 李四=500, 王五=600)

'''

class Yinhang(object):
    my_list = []
    yu = 0

    def cun(self):
        i = input('请输入存款金额')
        j = int(i)
        Yinhang.yu += j
        date = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
        my_list1 = [date, '转入', '+'+i, '人民币', Yinhang.yu]
        print(my_list1)
        Yinhang.my_list.append(my_list1)

    def qu(self):
        i = input('请输入取款金额')
        j = int(i)
        if j > Yinhang.yu:
            print('余额不足')
        else:
            Yinhang.yu -= j
            date = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
            my_list1 = [date, '转出', '-'+i, '人民币', Yinhang.yu]
            print(my_list1)
            Yinhang.my_list.append(my_list1)

    def da(self):
        for i in Yinhang.my_list:
            print(i)

a = Yinhang()
a.cun()
a.qu()
a.da()




